import yayJpg from '../assets/yay.jpg';
import { useNavigate } from 'umi';

export default function HomePage() {
  const navigate = useNavigate()
  const handleClick = () => {
    navigate('/docs')
  }
  return (
    <div>
      <h2>Yay! Welcome to umi!</h2>
      <button onClick={handleClick}>跳转Doc</button>
      <p>
        <img src={yayJpg} width="388" />
      </p>
      <p>
        To get started, edit <code>pages/index.tsx</code> and save to reload.
      </p>
    </div>
  );
}
